<div class="row-fluid">
<div class="span1">&nbsp;</div>
<div class="span10">
<h3 align="left">Current Repair Process</h3>

<?php echo form_open_multipart('/engineer/repair/completed_nonwarranty');?>

<hr>
<div class="span11">
<div class="span2"></div>
<div class="span3">
<label><b>Case No</b></label>
<input type="text" readonly="readonly" value="<?php echo $case->case_no;?>">
<input type="hidden" name="case_id" value="<?php echo $case->id;?>"/>
<label><b>Order No.</b></label>
<input type="text" readonly="readonly"value="<?php echo $case->order_no;?>">
</div>
<div class="span1">
</div>
<div class="span3">
<label><b>Repair Report<b></label>
<textarea rows="4" name="report"> </textarea>
</div>
<div class="span12">
<table width="100%" class="table table-bordered" >
  <tr class="info">
               <td><b>SL No.</b></td>
               <td><b>Part Name</b></td>
			   <td><b>Model No.</b></td>
			  <td><b>Serial No.</b></td>
			  <td><b> Manufacturing Date</b></td>
			  <td><b>Price</b></td>
            
             </tr>
			
 <tbody id="p_scents">   
 <?php $count=0;?>
<?php foreach ($part as $so1){$count=$count+1;?> 
  <tr><label for="p_scnts">
    <td ><input type="text" class="span8" name='sl_no[]' id="sl_no" value="<?php echo $count;?>" /></td>
    <td ><input type="text" class="span12" name="part_name[]" id="part_name" value="<?php echo $so1->name;?>" /></td>
	    <td ><input type="text" class="span12" name='docket_no[]' id="docket_no" value="<?php echo $so1->model;?>" /></td>
	 <td ><input type="text" class="span12"  id="case_no" value=" <?php echo $so1->serial;?>"='case_no[]'/></td>
	  <td >
	<input type="text" name="mfg" value="<?php echo $so1->manufacturing_date;?>"/></td>
	
	  <td >
	<input type="text" name="price" value="<?php echo $so1->price;?>"/></td>
	
	  

 </label> </tr>
 <?php } ?>
 
  </tbody>
</table>
<input type="radio" name="expense" id="engineer_expense" value="1"/>&nbsp;&nbsp;Expenses <input type="radio" name="expense" id="no_expenses" checked="true" value="0"/>&nbsp;&nbsp;No Expenses
<table width="100%" class="table table-bordered" id="expense_table" >
  <tr class="info">
               <td><b>Travel</b></td>
               <td><b>Fooding</b></td>
			   <td><b>Accomodation</b></td>
			  <td><b>Conveyance </b></td>
			  <td><b> Other</b></td>
			 
			
            
             </tr>
			
 <tbody id="p_scents">
 <tr><label for="p_scnts">
    <td ><input type="text"  class="span12"  name="travel_expense"       id="travel_expense" />    </td>
    <td ><input type="text"  class="span12"  name="fooding_expense"      id="fooding_expense"  />   </td>
	<td><input  type="text"  class="span12"  name="accomodation_expense" id="accomodation_expense"/></td>
	<td ><input type="text"  class="span12"  name="conveyance_expense"   id="conveyance_expense" /> </td>
	<td ><input type="text"  class="span12"  name="other_expense"        id="other_expense"/>       </td>
	
 </label> </tr>  </tbody>
</table>
<br>
<br>
<p class="pull-right">


<input class="btn btn-primary" type="submit" data-loading-text="Loading..." name="completed" id="submit" value="Completed"></p>
<?php echo form_close();?>
</form>
</div>
</div>
</div>
</div>
<script>
$(document).ready(function(){
$("#expense_table").hide(); 
$('#engineer_expense').click(function () { $("#expense_table").toggle(this.checked);});
$('#no_expenses').click(function () { $("#expense_table").hide();});
 });
</script>